package pom;

import org.openqa.selenium.WebDriver;
import org.testng.Assert;

public class FalseLoginPage {
        private final WebDriver driver;
        public FalseLoginPage(WebDriver driver)
        {
                 this.driver = driver;
                 System.out.println("YEAH!!False log in!!!");
                 Assert.assertTrue(
                         driver.getPageSource().contains("Username and password do not match or you do not have an account yet"),
                         "False Login page not appear");
                //if (!driver.getPageSource().contains("Username and password do not match or you do not have an account")) {
                  //  throw new IllegalStateException("False login homepage not appears.");
                }
        }



